package com.jasmine.bjstkserver.server.article.online.model;

import com.fasterxml.jackson.annotation.JsonInclude;

import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * @author jasmineXz
 */
@Table(name = "article")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ArticleEntity {

    @Id
    private Integer articleId;
    private Integer userId;
    private Integer hits;            // 点击量
    private Integer pViews;          // 浏览量
    private Integer applaud;         // 喜欢
    private String version;          // 版本
    private LocalDateTime creTime;
    private LocalDateTime updTime;
    private String  contentMd;
    private String  contentHtml;

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getHits() {
        return hits;
    }

    public void setHits(Integer hits) {
        this.hits = hits;
    }

    public Integer getpViews() {
        return pViews;
    }

    public void setpViews(Integer pViews) {
        this.pViews = pViews;
    }

    public Integer getApplaud() {
        return applaud;
    }

    public void setApplaud(Integer applaud) {
        this.applaud = applaud;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public LocalDateTime getCreTime() {
        return creTime;
    }

    public void setCreTime(LocalDateTime creTime) {
        this.creTime = creTime;
    }

    public LocalDateTime getUpdTime() {
        return updTime;
    }

    public void setUpdTime(LocalDateTime updTime) {
        this.updTime = updTime;
    }

    public String getContentMd() {
        return contentMd;
    }

    public void setContentMd(String contentMd) {
        this.contentMd = contentMd;
    }

    public String getContentHtml() {
        return contentHtml;
    }

    public void setContentHtml(String contentHtml) {
        this.contentHtml = contentHtml;
    }
}
